package oops.inheritance;

public class Parent {
	
	private int id;
	
	String name;
	
	public Parent(){
		System.out.println("This is Parent constructor with no arguments");
	}
	
	public Parent(String name, int id){
		this();
		this.id = id;
		this.name=name;
		System.out.println("This is parent constructor with arguments name, id");
	}
	
	void sayGoodNight(){
		System.out.println("Good night");
	}
	
	
	public final void sayHello(){
		System.out.println("hello");
		
	}
	
	public void sayGoodMorning(){
		System.out.println("Good morning");
	}
	
	protected void saySomething(){
		System.out.println("Hi, something something");
	}
	


}
